/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.eb.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.eb.entity.ProductClassify;
import com.kaaction.modules.eb.dao.ProductClassifyDao;

/**
 * 商品与分类Service
 * @author zengbiao
 * @version 2017-04-19
 */
@Service
@Transactional(readOnly = true)
public class ProductClassifyService extends CrudService<ProductClassifyDao, ProductClassify> {

	public ProductClassify get(String id) {
		return super.get(id);
	}
	
	public List<ProductClassify> findList(ProductClassify productClassify) {
		return super.findList(productClassify);
	}
	
	public Page<ProductClassify> findPage(Page<ProductClassify> page, ProductClassify productClassify) {
		return super.findPage(page, productClassify);
	}
	
	@Transactional(readOnly = false)
	public void save(ProductClassify productClassify) {
		super.save(productClassify);
	}
	
	@Transactional(readOnly = false)
	public void delete(ProductClassify productClassify) {
		super.delete(productClassify);
	}

	public List<ProductClassify> findListByProductId(String id) {
		return super.dao.findListByProductId(id);
	}

	@Transactional(readOnly = false)
	public void deleteByProductId(String id) {
		super.dao.deleteByProductId(id);
		
	}
	
}